package yl.hs.bmipfull.viewmodels.WeightApp;

import java.util.ArrayList;
import java.util.List;

/*
 * DeviceInfo 无人磅房设备信息
 * @category
 * @author 谢景广
 * @date 2022-04-12
 */
public class DeviceInfo {
    private  String deviceName;
    private List<NetworkDevice> cameras;
    private  SerialPortDevice weighbridge;
    private NetworkDevice integrated;
    private List<NetworkDevice> truckPlateRecognitions=new ArrayList<>();
    private SerialPortDevice cardReader;
    private SerialPortDevice serScanner;
    private List<NetworkDevice> netScanner=new ArrayList<>();
    private List<NetworkDevice> netSetScannerQR= new ArrayList<>();
    private boolean enabled;

    public List<NetworkDevice> getNetSetScannerQR() {
        return netSetScannerQR;
    }

    public void setNetSetScannerQR(List<NetworkDevice> netSetScannerQR) {
        this.netSetScannerQR = netSetScannerQR;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public List<NetworkDevice> getCameras() {
        return cameras;
    }

    public void setCameras(List<NetworkDevice> cameras) {
        this.cameras = cameras;
    }

    public SerialPortDevice getWeighbridge() {
        return weighbridge;
    }

    public void setWeighbridge(SerialPortDevice weighbridge) {
        this.weighbridge = weighbridge;
    }

    public NetworkDevice getIntegrated() {
        return integrated;
    }

    public void setIntegrated(NetworkDevice integrated) {
        this.integrated = integrated;
    }


    public void addTruckPlateRecognitions(NetworkDevice truckPlateRecognitions) {
        this.truckPlateRecognitions.add(truckPlateRecognitions);
    }

    public List<NetworkDevice> getTruckPlateRecognitions() {
        return truckPlateRecognitions;
    }

    public void setTruckPlateRecognitions(List<NetworkDevice> truckPlateRecognitions) {
        this.truckPlateRecognitions = truckPlateRecognitions;
    }

    public SerialPortDevice getCardReader() {
        return cardReader;
    }

    public void setCardReader(SerialPortDevice cardReader) {
        this.cardReader = cardReader;
    }

    public SerialPortDevice getSerScanner() {
        return serScanner;
    }

    public void setSerScanner(SerialPortDevice serScanner) {
        this.serScanner = serScanner;
    }

    public List<NetworkDevice> getNetScanner() {
        return netScanner;
    }

    public void setNetScanner(List<NetworkDevice> netScanner) {
        this.netScanner = netScanner;
    }
    public void addNetScanner(NetworkDevice netScanner){
        this.netScanner.add(netScanner);
    }
    public void addNetScannerQR(NetworkDevice netScanner){
        this.netSetScannerQR.add(netScanner);
    }
    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }


}
